#ifndef __traceroute_tactics_h__
#define __traceroute_tactics_h__ 1
#include "sys.h"
#include "cJSON.h"
typedef struct tracerouteTactics{
    char toAddress[128];
    char type[16];
    int size;
    int maxNum;
    int timeout;
    char businessTag[64];
    char kafkaTopic[64];
    TAILQ_ENTRY(tracerouteTactics) entry;
}tracerouteTactics_t;
TAILQ_HEAD(tracerouteTactics_head, tracerouteTactics);

typedef struct{
    char *taskId;
    char *version;
    char *kafka_url;
    int count;
    struct tracerouteTactics_head head;
    cJSON *result;
    pthread_mutex_t mutex;
    pthread_cond_t cond;
}traceroute_tactics_t;

void *do_traceroute_tactics(void *arg);
#endif